/*
 * manual_test.cc
 * Simple manual (interactive) test executable
 */

#include <iostream>
#include "../src/Radio.h"
#include "../src/calculation.h"

int main(void) {
	CalcResults results;

	while(std::cin.good()) {
		int sr,dr;

		std::cout << "Station radial: ";
		std::cin >> sr;

		std::cout << "Desired radial: ";
		std::cin >> dr;

		calculate(sr,dr,true,results);

		std::cout << "Displacement: " << results.displacement << ", ";
		std::cout << "direction: ";
		switch(results.direction) {
		case CalcResults::TO:
			std::cout << "TO";
			break;
		case CalcResults::FROM:
			std::cout << "FROM";
			break;
		case CalcResults::UNKNOWN:
			std::cout << "UNKNOWN";
			break;
		}
		std::cout << std::endl << std::endl;
	}

	return 1;
}
